#-------------------------------------------------
#
# Project created by QtCreator 2018-09-03T10:24:43
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = tn-qt-ffplay
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += __WINDOWS_WASAPI__
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
QT += multimedia

SOURCES += \
        main.cpp \
    src/audioportaudio.cpp \
    src/audioportaudio.cpp \
    src/audiothread.cpp \
    src/avclock.cpp \
    src/aveventthread.cpp \
    src/avmanager.cpp \
    src/framequeue.cpp \
    src/main.cpp \
    src/mainwindow.cpp \
    src/myopenglwidget.cpp \
    src/packetqueue.cpp \
    src/readthread.cpp \
    src/videothread.cpp





INCLUDEPATH += $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/include

LIBS += $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/avcodec.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/avdevice.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/avfilter.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/avformat.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/avutil.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/swresample.lib \
        $$PWD/ffmpeg-sdk/ffmpeg-4.0.2-win64/lib/swscale.lib
INCLUDEPATH += $$PWD/portaudio-sdk
LIBS += $$PWD/portaudio-sdk/portaudio_x64.lib

HEADERS += \
    src/audioportaudio.h \
    src/audiothread.h \
    src/avclock.h \
    src/aveventthread.h \
    src/avmanager.h \
    src/framequeue.h \
    src/global.h \
    src/mainwindow.h \
    src/myopenglwidget.h \
    src/packetqueue.h \
    src/readthread.h \
    src/videothread.h

FORMS += \
    src/mainwindow.ui

